package com.future.serviceImpl;

import com.future.dto.ElectricDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.future.domain.Electric;
import com.future.mapper.ElectricMapper;
import com.future.service.ElectricService;
/**
 * @Auther: 田坑坑
 * @Date: 2022/6/20 14:01
 * @Description:  我题序等你回
 */
@Service
public class ElectricServiceImpl extends ServiceImpl<ElectricMapper, Electric> implements ElectricService{


    @Autowired
     ElectricMapper electricMapper;


    @Override
    public List<ElectricDto> selectElectric() {
        return this.electricMapper.selectElectricd();
    }

    @Override

    public int updateBatch(List<Electric> list) {
        return baseMapper.updateBatch(list);
    }
    @Override
    public int updateBatchSelective(List<Electric> list) {
        return baseMapper.updateBatchSelective(list);
    }
    @Override
    public int batchInsert(List<Electric> list) {
        return baseMapper.batchInsert(list);
    }
}
